﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_CIB001_Detail : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public void SetValue(System.Data.DataRow p_row, string[] p_fieldType)
    {
        Control_labelWidthTextBox lwt = null;
        string controlID = "";
        for (int i = 0; i < p_row.ItemArray.Length; i++)
        {
            controlID = string.Format("lwt_{0}", p_row.Table.Columns[i].ColumnName);
            lwt = FindControl(controlID) as Control_labelWidthTextBox;
            if (lwt is Control_labelWidthTextBox)
            {
                lwt.SetValue(p_row[i].ToString());
            }
        }
        lbl_Seq.Text = string.Format("Record NO:{0}",p_row[0].ToString());
    }
}
